package com.zhiliao.module.web.cms.service;

import com.zhiliao.common.base.BaseService;
import com.zhiliao.mybatis.model.TCmsModel;

import java.util.List;

/**
 * Description:
 *
 * @author qirong
 * @date 2018-10-26
 */
public interface ModelService extends BaseService<TCmsModel,Integer>{

    /**
     * findModelByModelName
     * @param modelName
     * @return
     */
    TCmsModel findModelByModelName(String modelName);

    /**
     * findModelByTableName
     * @param tableName
     * @return
     */
    TCmsModel findModelByTableName(String tableName);

    /**
     * findModelListByStatusAndSiteId
     * @param status
     * @param siteId
     * @return
     */
    List<TCmsModel> findModelListByStatusAndSiteId(boolean status,Integer siteId);

    /**
     * findModelListByStatus
     * @param status
     * @return
     */
    List<TCmsModel> findModelListByStatus(boolean status);

}
